﻿using System;
using System.Collections.Generic;
using System.Text;

using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;

namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public partial class mdc_Recipient : DataObject
    {
        [ID]
        [DID]
        public string ID { get { return _ID; } set { _ID = value; EntityState.FieldChange("ID"); } }
        private string _ID;
        public static FieldInfo id = new FieldInfo("mdc_Recipient", "ID");

        [Column]
        public string Process { get { return _Process; } set { _Process = value; EntityState.FieldChange("Process"); } }
        private string _Process;
        public static FieldInfo process = new FieldInfo("mdc_Recipient", "Process");

        [Column]
        public string Step { get { return _Step; } set { _Step = value; EntityState.FieldChange("Step"); } }
        private string _Step;
        public static FieldInfo step = new FieldInfo("mdc_Recipient", "Step");

        [Column]
        public string Distribute { get { return _Distribute; } set { _Distribute = value; EntityState.FieldChange("Distribute"); } }
        private string _Distribute;
        public static FieldInfo distribute = new FieldInfo("mdc_Recipient", "Distribute");

        [Column]
        public string Recipient { get { return _Recipient; } set { _Recipient = value; EntityState.FieldChange("Recipient"); } }
        private string _Recipient;
        public static FieldInfo recipient = new FieldInfo("mdc_Recipient", "Recipient");

        [Column]
        public string RecipientName { get { return _RecipientName; } set { _RecipientName = value; EntityState.FieldChange("RecipientName"); } }
        private string _RecipientName;
        public static FieldInfo recipientName = new FieldInfo("mdc_Recipient", "RecipientName");

        [Column]
        [NowDate]
        public DateTime Time { get { return _Time; } set { _Time = value; EntityState.FieldChange("Time"); } }
        private DateTime _Time;
        public static FieldInfo time = new FieldInfo("mdc_Recipient", "Time");

        [Column]
        public int Status { get { return _Status; } set { _Status = value; EntityState.FieldChange("Status"); } }
        private int _Status;
        public static FieldInfo status = new FieldInfo("mdc_Recipient", "Status");

        [Column]
        public string Type { get { return _Type; } set { _Type = value; EntityState.FieldChange("Type"); } }
        private string _Type;
        public static FieldInfo type = new FieldInfo("mdc_Recipient", "Type");
    }
}
